import request from '@/utils/request'

export async function systemPageQuery(system, paginator) {
  return await request({
    url: '/bicAdmin/system/query',
    method: 'post',
    data: {
      'system': system,
      'paginator': paginator
    }
  })
}
export async function systemSave(system) {
  return await request({
    url: '/bicAdmin/system/save',
    method: 'post',
    data: system
  })
}

export async function remoteValidateSystemName(name) {
  return await request({
    url: '/bicAdmin/system/validateName/' + name,
    method: 'get',
  })
}

export async function remoteValidatesSystemKey(key) {
  return await request({
    url: '/bicAdmin/system/validateKey/' + key,
    method: 'get',
  })
}
